package com.zrrd.utils;

/**
 * @author ZhangYK
 * @version 8.0
 * @title ResponseStatusCode
 * @description
 * @create 2024/3/24 20:09
 */
public enum ResponseStatusCode {
    DEFAULT_OK(200,"响应成功"),
    DEFAULT_ERR(201,"响应失败"),
    SAVE_OK(20000,"添加成功"),
    SAVE_ERR(20001,"添加失败"),
    DELETE_OK(20010,"删除成功"),
    DELETE_ERR(20011,"删除失败"),
    UPDATE_OK(20020,"修改成功"),
    UPDATE_ERR(20021,"修改失败"),
    FIND_OK(20030,"查询成功"),
    FIND_ERR(20031,"查询失败");

    //响应状态码
    private Integer code;
    //响应信息
    private String message;

    ResponseStatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }

}
